﻿<Page
    x:Class="Dicide.Views.MainPage"
    IsTabStop="false"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Dicide.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:pvl="using:PanViewLibrary"
    xmlns:cfo="using:CharmFlyoutLibrary"
    mc:Ignorable="d">
    <Page.TopAppBar>
        <AppBar
            Padding="10,0,10,0">
            <local:CompenentSelector x:Name="MyComponentSelector" />
        </AppBar>
    </Page.TopAppBar>
    <Grid>
        <pvl:PanView>
            <local:MyCanvas
                SelectedComponent="{Binding ElementName=MyComponentSelector, Path=SelectedComponent}"></local:MyCanvas>
        </pvl:PanView>
        <cfo:CharmFlyout
            x:Name="cfoAbout"
            Heading="About"
            HeadingBackgroundBrush="#FF4E0000">
            <local:About />
        </cfo:CharmFlyout>
    </Grid>
</Page>
